//
//  UserProfileTableViewCell.m
//  EasyChat
//
//  Created by 萱草~ on 16/6/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UserProfileTableViewCell.h"

@implementation UserProfileTableViewCell

-(void)dealloc{
    [_ProfilePhoto release];
    [_myImageView release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.ProfilePhoto = [[UILabel alloc] init];
        [self.contentView addSubview:self.ProfilePhoto];
        [_ProfilePhoto release];
        
//        self.imageBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
//        [self.contentView addSubview:self.imageBtn];
        
        
        self.myImageView = [[UIImageView alloc] init];
        self.myImageView.layer.cornerRadius = 5;
        self.myImageView.clipsToBounds = YES;
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.ProfilePhoto.frame = CGRectMake(10, 30, 100, 30);
//    self.ProfilePhoto.backgroundColor = [UIColor blueColor];
    
//    self.imageBtn.frame = CGRectMake(VIEW_WIDTH - 80, 10, 60, 60);
//    self.imageBtn.backgroundColor = [UIColor clearColor];
    
    self.myImageView.frame = CGRectMake(VIEW_WIDTH - 80, 10, 60, 60);
    self.myImageView.backgroundColor = [UIColor lightGrayColor];
    
    
}




@end
